//
//  MyCollectionViewCell.m
//  XDCommonApp
//
//  Created by XD-XY on 7/17/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "MyCollectionViewCell.h"

@implementation MyCollectionViewCell

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self initViews];
    }
    return self;
}

-(void)initViews
{
    self.kindIV = [UIImageView initImageViewRect:CGRectMake(2, 0, 86, 86) andImage:[UIImage imageNamed:@"placeholderImg"] andUserInteractionEnabled:YES];
    self.kindName = [UILabel initLabelRect:CGRectMake(0, 97, 90, 20) andBackGroudColor:[UIColor whiteColor] andTextFont:[UIFont systemFontOfSize:14] andTextColor:[UIColor blackColor] andTextAlignment:NSTextAlignmentCenter];
    
    [self addSubview:_kindIV];
    [self addSubview:_kindName];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
